package interfaces.loading;

import gameStates.absGamesStates.gui.AbsLoadingState;
import interfaces.PropertyContent;
import interfaces.superWidgets.InterfaceElement;

public class LoadingScreen extends InterfaceElement {
	
	protected PropertyContent loadingContent;
	
	public LoadingScreen(AbsLoadingState loadingState) {
		super(loadingState);
	}
	
	public void updateLoadingScreen(int newValue) {
		updateProgressBar(newValue);
	}
	
	protected void updateProgressBar(int newValue) {
		if(newValue <= 0) newValue = 0;
		loadingContent.setValue(newValue);
	}
	
	@Override
	public void updateMoney(int newMoney) {}
}